Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 'RetrieveFullPathForCollection' to return correct paths #51

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

griffri
Copy link
Contributor

@griffri griffri commented Sep 26, 2024

Resolves #48

This PR fixes a minor bug where CollectionRetrieval.RetrieveFullPathForCollection wasn't including slashes between slugs in the generated path.

@griffri
Copy link
Contributor Author

griffri commented Sep 26, 2024

A thought - is LINQ performant enough here?

Copy link
Collaborator

@JackLewis-digirati JackLewis-digirati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JackLewis-digirati
Copy link
Collaborator

A thought - is LINQ performant enough here?

Microsoft does put a lot of work into keeping LINQ performant as it's really popular, and we do use it throughout the code

If you're worried though, there's this repo benchmarking LINQ, and if you want to test this query in particular, you could use BenchMarkDotNet to test

@griffri
Copy link
Contributor Author

griffri commented Sep 26, 2024

I think it should be alright, but I'll read into those when I get the chance - they'll be good to know!

@griffri griffri merged commit f65ffd0 into main Sep 26, 2024
3 checks passed
@griffri griffri deleted the fix/malformed_publicId branch September 26, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Children of user-created storage collections have a malformed publicUrl
2 participants